async function getCurrentTab(options = {}) {
  const queryOptions = { active: true, currentWindow: true, ...options };
  const [tab] = await chrome.tabs.query(queryOptions);
  return tab;
}

export { getCurrentTab };
